<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>
<style>
    .aike_news .box .news_list .list {
        display: none;
    }

    .aike_news .box .news_list .on {
        display: block;
    }
</style>

<div id="fullpage">
    <div class="section">
        <video class="fullscreenvideo" id="bgvid" playsinline="" autoplay muted="" loop>
            <source src="<?php echo image_url('video.mp4'); ?>" type="video/mp4">
        </video>
    </div>
</div>
<!-- banner [[-->
<div id="wrap">
    <ul class="hiSlider hiSlider3">
        <?php if ($banner['mobile']) : ?>
            <?php foreach ($banner['mobile'] as $key => $val) : ?>
                <li class="hiSlider-item"><img src="<?php echo $val['pic_url']; ?>"></li>
            <?php endforeach; ?>
        <?php endif; ?>
    </ul>
</div>
<!--]] banner -->
<?php $this->load->view('common/mobile_menu'); ?>
<div class="aike_produce">
    <div class="aike_title">
        <p>Germany aike</p>
        <span>
            <em><i></i>艾克墙布系列<i></i></em>
        </span>
    </div>
    <div class="list">
        <ul>
            <?php if ($hot) : ?>
                <?php foreach ($hot as $key => $val) : ?>
                    <li>
                        <a href="/product/<?php echo $val['id']; ?>.html">
                            <span><?php echo $val['category_name']; ?></span>
                            <img src="<?php echo $val['cover']; ?>">
                        </a>
                    </li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
    </div>
</div>
<div class="aike_news">
    <div class="aike_title">
        <p>aike news</p>
        <span>
        	<em><i></i>新闻中心<i></i></em>
        </span>
    </div>
    <div class="box">
        <div class="swiperbox f_l">
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <?php if ($news['hot']) : ?>
                        <?php foreach ($news['hot'] as $key => $val) : ?>
                            <div class="swiper-slide">
                                <img src="<?php echo $val['img']; ?>" alt="">
                                <div class="item-footer">
                                    <p class="name">
                                        <?php echo $val['title']; ?>
                                    </p>
                                    <p class="item-des">
                                        <?php echo $val['describe']; ?>
                                    </p>
                                </div>
                            </div>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
                <div class="swiper-pagination"></div>

                <div class="swiper-button-prev"></div>
                <!--左箭头。如果放置在swiper-container外面，需要自定义样式。-->
                <div class="swiper-button-next"></div>
                <!--右箭头。如果放置在swiper-container外面，需要自定义样式。-->
            </div>
        </div>
        <div class="news_list f_r">
            <div class="title">
            	<span>
                    <a href="javascript:;" class="new_menu on" data-id="0">集团要闻</a>
                    <a href="javascript:;" class="new_menu" data-id="1">产业新闻</a>
                    <a href="javascript:;" class="new_menu" data-id="2">媒体报道</a>
                </span>
            </div>
            <div class="list on">
                <?php if ($news['company']) : ?>
                    <?php foreach ($news['company'] as $key => $val) : ?>
                        <dl>
                            <dt>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html">
                                    <img src="<?php echo $val['img']; ?>">
                                </a>
                            </dt>
                            <dd>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html"><?php echo $val['title']; ?></a>
                                <p class="time"><?php echo date("Y-m-d", strtotime($val['create_time'])); ?></p>
                                <span class="con"><?php echo $val['describe']; ?></span>
                            </dd>
                        </dl>
                    <?php endforeach; ?>
                <?php endif; ?>
                <h1><a href="/news/1.html">查看全部</a></h1>
            </div>
            <div class="list">
                <?php if ($news['industry']) : ?>
                    <?php foreach ($news['industry'] as $key => $val) : ?>
                        <dl>
                            <dt>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html">
                                    <img src="<?php echo $val['img']; ?>">
                                </a>
                            </dt>
                            <dd>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html"><?php echo $val['title']; ?></a>
                                <p class="time"><?php echo date("Y-m-d", strtotime($val['create_time'])); ?></p>
                                <span class="con"><?php echo $val['describe']; ?></span>
                            </dd>
                        </dl>
                    <?php endforeach; ?>
                <?php endif; ?>
                <h1><a href="/news/1.html">查看全部</a></h1>
            </div>
            <div class="list">
                <?php if ($news['media']) : ?>
                    <?php foreach ($news['media'] as $key => $val) : ?>
                        <dl>
                            <dt>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html">
                                    <img src="<?php echo $val['img']; ?>">
                                </a>
                            </dt>
                            <dd>
                                <a href="/company_news_show/<?php echo $val['id']; ?>.html"><?php echo $val['title']; ?></a>
                                <p class="time"><?php echo date("Y-m-d", strtotime($val['create_time'])); ?></p>
                                <span class="con"><?php echo $val['describe']; ?></span>
                            </dd>
                        </dl>
                    <?php endforeach; ?>
                <?php endif; ?>
                <h1><a href="/news/1.htmll">查看全部</a></h1>
            </div>
        </div>
    </div>
</div>
<script>
    $(".new_menu").click(function () {
        var menu = $(this).attr("data-id");
        $(this).parent().parent().parent().find(".list").hide();
        $(this).parent().parent().parent().find(".list").eq(menu).show();
    });
</script>
<?php $this->load->view('common/footer'); ?>
